package com.suyin.ximoon.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.suyin.ximoon.dao.LyUserDao;
import com.suyin.ximoon.model.LyUser;
import com.suyin.ximoon.service.LyUserService;


@Service
@Transactional(rollbackFor = { Exception.class })
public class LyUserServiceImpl extends BaseServiceImpl<LyUser> implements LyUserService {
	
	private LyUserDao lyUserDao;
	@Resource
	public void setLyUserDao(LyUserDao lyUserDao) {
		this.lyUserDao = lyUserDao;
		setBaseDao(lyUserDao);
	}
	@Override
	public List<LyUser> queryUserByPage(LyUser lyuser) {
		return lyUserDao.queryUserByPage(lyuser);
	}
	@Override
	public List<LyUser> queryAll(LyUser lyuser) {
		return lyUserDao.queryAll(lyuser);
	}
}
